package com.zhuozhou.jdyc.main.menu.adapter;

import android.content.Context;

import com.zhuozhou.jdyc.R;
import com.zhuozhou.jdyc.base.BaseRecyclerViewAdapter;
import com.zhuozhou.jdyc.base.BaseViewHolder;
import com.zhuozhou.jdyc.databinding.JokeItemBinding;
import com.zhuozhou.jdyc.main.menu.bean.JokeBean;


/**
 * Created by 方舟 on 2017/10/20.
 * 笑话大全
 */
public class JokeAdapter extends BaseRecyclerViewAdapter<JokeBean,JokeItemBinding> {

    public JokeAdapter(Context context) {
        super(context);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.joke_item;
    }

    @Override
    public void onBindHolder(BaseViewHolder<JokeItemBinding> holder, int pos) {
        holder.getBinding().setItem(mList.get(pos));
    }
}
